<template>
    <div class="inputcon">
        <i class="iconfont icon-search"></i>
        <input type="text" placeholder="搜索" v-model="val">
    </div>
</template>

<script>
export default {
    data(){
        return {
            val:''
        }
    },
    methods:{

    }
}
</script>

<style scoped>

.inputcon{
    height: 50px;
    line-height: 50px;
    padding: 0 10px;
    text-align: center;
    position: relative;
    background-color: #f1f1f1;
}
i{
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translate(0,-50%);
    color: #333;
}
input{
    width: 100%;
    height: 35px;
    border: none;
    background:none;  
	outline:none;
    border: 0.5px solid #ddd;
    background-color: #fff;
    padding-left: 35px;
    border-radius: 3px;
    color: #333;
}

</style>